<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>朋际-游戏朋友圈 下载</title>
    <!--<meta name="baidu-site-verification" content="1e01c0f0ac8abff6b2b58f8457d6df68">-->
    <!--<meta property="qc:admins" content="114761067352607354536375">-->
    <meta name="keywords" content="朋际-游戏朋友圈是一款熟人社交的游戏平台">
    <meta name="description" content="朋际-游戏朋友圈是一款熟人社交的游戏平台">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="email=no">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
    <link rel="icon" href="../static/images/game/icon.jpeg" type="image/x-icon">
    <link rel="stylesheet" href="../static/css/style_mobile.css"  type="text/css">
    <style>
        .popWindow {
            background-color: #9D9D9D;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            filter: alpha(opacity=50);
            opacity: 0.8;
            z-index: 1;
            position: absolute;

        }

        .newwindow {
            position: fixed;
            z-index: 102;
            width: 18.83rem;
            height: 16.08rem;
            top: 40px;
            right: 15px;
        }

        .newwindow img {
            width: 100%;
            height: 100%;
        }
    </style>
    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?9c05d89dc61fe5deca31b41b12f863f6";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
</head>
<body>
<div id="popWindow" class="popWindow" style="display: none;" onclick="closeDiv()">
    <img class="hp-mask-instruction" src="../static/images/game/instruction.png" style="float: right;margin-right: 5px; width: 50%">
</div>
<div class="header">
</div>
<div class="content">
    <style>
        .fs_gallery_shuft_item {
            width: 100%;
            height: 100%;
            float: left;
            position: relative;
            background-image: url(data:image/gif;background-position:center);
            background-repeat: no-repeat;
        }
    </style>
    <div class="gamedown_info" gameid="1">
        <div class="icon"><img src="../static/images/game/icon.jpeg"></div>
        <div class="name">
            <p class="gamename">豪哥-街机电玩城</p>
            <p class="gamestart"><img src="../static/images/game/start.png"></p>
            <p class="gametext">这是一款成人的游戏平台</p>
        </div>
        <div class="ma"></div>
        <div class="clear"></div>
    </div>
    <div class="gameFeatures ">
        <img src="http://www.wgb.cn/images/yes.png"><span>无病毒</span>
        <img src="http://www.wgb.cn/images/yes.png"><span>无广告</span>
        <img src="http://www.wgb.cn/images/yes.png"><span>隐私保护</span>
        <img src="http://www.wgb.cn/images/yes.png"><span>官方正版</span>
    </div>
    <div class="slider">
        <div class="gameimg">
            <ul id="gallery">
                <li><img src="../static/images/game/550.jpeg" bigsrc="../static/images/game/550.jpeg"></li>
                <li><img src="../static/images/game/551.jpeg" bigsrc="../static/images/game/550.jpeg"></li>
                <li><img src="../static/images/game/552.jpeg" bigsrc="../static/images/game/550.jpeg"></li>
            </ul>
        </div>
        <div class="js">应用介绍</div>
        <div class="xxjs" style="color:#666;">
            豪哥说喜欢玩五星宏辉,所以就做一个给朋友们耍耍. 这样不用去游戏厅也可以很好的释放自己的压力!!!
        </div>
    </div>
    <div class="gamedown_footer">
        <a href="javascript:void(0);" onclick="download1()">立即下载</a>
    </div>
    <script>
        function showDiv() {
            document.getElementById('popWindow').style.display = 'block';
        }
        function closeDiv() {
            document.getElementById('popWindow').style.display = 'none';
        }
        (function ($) {
            $.fn.touchwipe = function (settings) {
                var config = {
                    min_move_x: 20, min_move_y: 20, wipeLeft: function () {
                    }, wipeRight: function () {
                    }, wipeUp: function () {
                    }, wipeDown: function () {
                    }, preventDefaultEvents: true
                };
                if (settings) $.extend(config, settings);
                this.each(function () {
                    var startX;
                    var startY;
                    var isMoving = false;

                    function cancelTouch() {
                        this.removeEventListener('touchmove', onTouchMove);
                        startX = null;
                        isMoving = false
                    }

                    function onTouchMove(e) {
                        if (config.preventDefaultEvents) {
                            e.preventDefault()
                        }
                        if (isMoving) {
                            var x = e.touches[0].pageX;
                            var y = e.touches[0].pageY;
                            var dx = startX - x;
                            var dy = startY - y;
                            if (Math.abs(dx) >= config.min_move_x) {
                                cancelTouch();
                                if (dx > 0) {
                                    config.wipeLeft()
                                } else {
                                    config.wipeRight()
                                }
                            } else if (Math.abs(dy) >= config.min_move_y) {
                                cancelTouch();
                                if (dy > 0) {
                                    config.wipeDown()
                                } else {
                                    config.wipeUp()
                                }
                            }
                        }
                    }

                    function onTouchStart(e) {
                        if (e.touches.length == 1) {
                            startX = e.touches[0].pageX;
                            startY = e.touches[0].pageY;
                            isMoving = true;
                            this.addEventListener('touchmove', onTouchMove, false)
                        }
                    }

                    if ('ontouchstart' in document.documentElement) {
                        this.addEventListener('touchstart', onTouchStart, false)
                    }
                });
                return this
            }
        })(jQuery);
        ;
        (function ($) {
            var k = function (obj) {
                this.o = $.extend({}, $.fn.bigpic.defaults);
                this.createShade(obj);
                this.loadImage();
                this.showImage(obj);
            };
            k.prototype = {
                createShade: function (obj) {
                    if ($('#' + this.o.shadeDiv).length <= 0) {
                        var p = $('<div></div>');
                        p.attr('id', this.o.shadeDiv).css({
                            'top': '0',
                            'left': '0',
                            'position': 'fixed',
                            'z-index': '10000',
                            'background': 'rgba(0,0,0,.9)',
                            'width': '100%',
                            'height': '100%'
                        });
                        $(document.body).append(p);
                    }
                    $('#' + this.o.shadeDiv).show();
                    $('#' + this.o.shadeDiv).on('click', function () {
                        $(this).hide();
                    })
                    $('#' + this.o.shadeDiv).css({
                        'background-image': 'url(' + obj.attr('src') + ')',
                        'background-repeat': 'no-repeat',
                        'background-position': ' center center',
                        'background-size': '100%'
                    });
                },
                loadImage: function () {
                    if ($('#' + this.o.loadImage).length <= 0) {
                        var i = $('<div></div>');
                        i.attr('id', this.o.loadImage).addClass('fs_gallery_shuft_item');
                        $('#' + this.o.shadeDiv).append(i);
                    }
                },
                delImage: function () {
                    if ($('#bigImage').length > 0) {
                        $('#bigImage').remove();
                    }
                },
                showImage: function (obj) {
                    var _this = this;
                    var image = $('<img id="bigImage"/>');
                    if ($('#bigImage').length <= 0) {
                        $('#' + this.o.shadeDiv).append(image);
                    }
                    $('#bigImage').attr('src', obj.attr('bigsrc') + '?' + Math.random()).css({'height': $(window).height() + 'px'});
                    $('#bigImage').bind('load', function () {
                        $('#' + _this.o.loadImage).remove();
                        $('#' + _this.o.shadeDiv).css({'background': 'rgba(0,0,0,.9)'});
                        var t = ($('#' + _this.o.shadeDiv).height() - $('#bigImage').height()) / 2, f = ($('#' + _this.o.shadeDiv).width() - $('#bigImage').width()) / 2;
                        $('#bigImage').css({'margin-top': t + 'px', 'margin-left': f + 'px'}).touchwipe({
                            wipeLeft: function () {
                                _this.delImage();
                                if (obj.parent('li').next().index() != -1) {
                                    new k(obj.parent('li').next().find('img'));
                                } else {
                                    new k(obj.parent('li:first').find('img'));
                                }
                            },
                            wipeRight: function () {
                                _this.delImage();
                                if (obj.parent('li').prev().index() != -1) {
                                    new k(obj.parent('li').prev().find('img'));
                                } else {
                                    new k(obj.parent('li:last').find('img'));
                                }
                            },
                            min_move_x: 30,
                            min_move_y: 30,
                            preventDefaultEvents: false
                        });
                    })
                }
            };
            $.fn.bigpic = function () {
                $(this).each(function () {
                    $(this).find('img').on('click', function () {
                        new k($(this));
                    })
                })
            };
            $.fn.bigpic.defaults = {
                shadeDiv: 'big_pic_shade',
                loadImage: 'big_pic_loading',
            }
        })(jQuery);
        $(document).ready(function () {
            $('#gallery li').bigpic();
        })

        function download1() {
            var u = navigator.userAgent;
            var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
            console.log("download1");
            var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
            var wx_web = u.indexOf('MicroMessenger') > -1;
            var url = "http://oy7x5adh8.bkt.clouddn.com/wxhh1.4.apk";
            if (wx_web === true){
                console.log("showDiv");
                showDiv();
            }else{
                window.location.href = url;
            };
            if (!!navigator.userAgent.match((/\(i[^;]+;( U;)? CPU.+Mac OS X/))) {
                url = "https://itunes.apple.com/US/app/id1234990752?mt=8";
            };

        }
    </script>
</div>
<div class="clear"></div>
</body>
</html>